package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.base.Result;
import com.example.springboot.pojo.FileInfo;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


@Transactional
public interface FileInfoService extends IService<FileInfo> {

    Result uploadFile(MultipartFile file, String folderId) throws IOException;

    void downLoadFile(String fileId, HttpServletResponse response);

    Result deleteFile(String fileId);
}
